import { useState } from "react";
import { useNavigate } from "react-router-dom";

export default function Mine() {
	const navigate = useNavigate();
	const [count, setCount] = useState(0);
	return (
		<div>
			<h2>Keep alive Mine Page</h2>
			<div>Count: {count} </div>
			<button onClick={() => setCount((pre) => pre + 1)}>
				Change Count
			</button>
			<button onClick={() => navigate("/keep-alive/about")}> Go to About </button>
		</div>
	);
}
